/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.mphokazi.designpatterns.part1.creational.AbstractFactoryMethod;

import za.ac.cput.assigment.AbstractFactoryMethod.ReptileFactory;
import za.ac.cput.assigment.AbstractFactoryMethod.SpeciesFactory;

/**
 *
 * @author mphokazi
 */
public class AbstractFactory {
    
    
   public  SpeciesFactory getSpeciesFactory(String type){
       if("mammal".equals(type))
       {
           return new MammalFactory();
       }else{return new ReptileFactory();
      
   }
   }
}
